<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
 <HEAD>
  <TITLE> IPT.Class </TITLE>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
	<!-- 导入包 -->
   <script type="text/javascript" src="../jquery-1.8.2.js"></script>	
   <script type="text/javascript" src="../../core.js"></script>
 </HEAD>

 <BODY >
 <script>
	var item = '<h1><%=name%><br/><div <%if(1 == 1) {%>style="height:60px;background:#EEEEEE;"<%}%>><%=description%></div></h1>'
	var tpl = new IPT.Template(item); 
	
	
	var result = tpl.applyTpl({
		name : "jone" ,
		description : "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx" 
	});
	$(document.body).html(result);
</script>
 </BODY>
</HTML>